package puzzle.projecteuler.p100;

import java.util.Calendar;

public class Problem019 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Calendar s = Calendar.getInstance();

		int count = 0;
		for (int y = 1901; y <= 2000; y ++) {
			for (int m = 0; m <= 11; m ++) {
				s.set(Calendar.YEAR, y);
				s.set(Calendar.MONTH, m);
				s.set(Calendar.DATE, 1);
				if (s.get(Calendar.DAY_OF_WEEK) == 1) {
					count ++;
				}
			}
		}
		System.out.println(count);
	}

}
